<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<link rel="stylesheet" href="css/ui-box.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-color.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/img.css">

	<script src="js/core/zy_control.js"></script>
    <script src="js/core/zy_click.js"></script>
    <script src="js/core/appframework.js"></script>
    <script src="js/main.js"></script>
    <script src="js/core.js"></script>
    <script src="js/res.js"></script>
    
    <script src="js/signup.js"></script>

</head>
<body class="ub ub-ver">
    <div class="upper108 ub-f1">
         <div class="uplr_p5 uc-a1 umt_1">
            <input id="username" placeholder="昵称" type="text"  class="input_signup">
            <div class="b-bla signup_input_ctn"></div>
        </div>
        <div class="uplr_p5 uc-a1 umt_1">
            <input id="phone" placeholder="手机号" type="number"  class="input_signup">
            <div class="b-bla signup_input_ctn"></div>
        </div>
        <div class="uplr_p5 uc-a1 umt_1">
            <input id="password" placeholder="密码" type="password"  class="input_signup">
            <div class="b-bla signup_input_ctn"></div>
        </div>
        <div class="uplr_p5 uc-a1 umt_1">
            <input id="email" placeholder="邮箱" type="text"  class="input_signup">
            <div class="b-bla signup_input_ctn"></div>
        </div>
        <div class="umt_1 ufp8">提示：昵称、手机号、密码是必填项</div>
    </div>
</body>
</html>
<script>
zy_init();
window.uexOnload = function(type){
    if (!type) {
        Res.gnTitle({title:"注册用户", rightTitle:"完成", rightFn: function(){
            if (!Core.check())
                return;
            var email = $("#email").val();
            if (!checkMobile($("#phone").val()))
                return;
            if (email&&!checkEmail(email))
                return;
            var data = new Object();
            $("body").find("input").each(function(){
                data[$(this).attr("id")] = $(this).val();
            });
            data.category = Role.STUDENT;
            $ajax({
                url:"/user/reg", 
                data:data, 
                success:function(res){
                    SetLS("user", res.result);
                    WinClose();
                    OpenNewWin("signup");
                }
            });           
        }});
        Add20ToHeader();
    }
}
</script>